package cn.tedu.cake.shop.product.web;

public enum ServiceCode {
    OK(20000),  // new ServiceCode(1)  getValue() = 1
    ERR_BAD_REQUEST(40000), // new ServiceCode(2) getValue() = 2
    ERR_NOT_FOUND(40400),
    ERR_CONFLICT(40900),
    ERR_UNKNOWN(99999)
    ;

    private Integer value;

    public Integer getValue() {
        return value;
    }

    /*
    * 枚举的构造方法只有私有类型，不写也默认的私有
    * */
    ServiceCode(Integer value){
        this.value = value;
    }
}
